package com.micro.modual.extension;

import com.micro.common.MicroConstant;
import com.micro.common.biz.GeneratorCodeUtil;
import com.micro.common.util.SnowFlakeUtil;
import com.micro.modual.entity.RefundOrder;
import com.micro.modual.model.bo.refundorder.RefundOrderBO;

/**
 * <h1>退款订单记录表 延展类</h1>
 *
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020-08-04 00:23:26
 */
public class RefundOrderExtension {

    /**
     * <h2>转换: 退款订单记录表 新增</h2>
     *
     * @param refundOrderBO {@link RefundOrderBO} 退款订单记录表 新增/修改 请求对象
     * @return {@link RefundOrder} 退款订单记录表
     */
    public static RefundOrder converAddRefundOrder(RefundOrderBO refundOrderBO) {
        RefundOrder refundOrder = new RefundOrder();
        refundOrder.setId(SnowFlakeUtil.getId());
        return refundOrder;
    }

    /**
     * <h2>转换: 退款订单记录表 修改</h2>
     *
     * @param refundOrderBO {@link RefundOrderBO} 退款订单记录表 新增/修改 请求对象
     * @return {@link RefundOrder} 退款订单记录表
     */
    public static RefundOrder converEditRefundOrder(RefundOrderBO refundOrderBO) {
        RefundOrder refundOrder = new RefundOrder();
        refundOrder.setId(refundOrderBO.getId());
        return refundOrder;
    }
}
